import QtQuick 2.15
import QtQuick.Layouts 1.15
//导入RadioGlobal模块
import RadioGlobal 1.0 as RadioGlobal
Item {
    id: radio
    width: parent.width
    height: parent.height
    property alias cBTCall: radioHistory.cBTCall //蓝牙通话标志

    StackLayout  {
        id: radioStack
        currentIndex: 0
        anchors.fill: parent

        RadioHistory{
            id: radioHistory
            onLoadSearchChannel: {
                radioStack.currentIndex = 1
            }
        }

        RadioSearch{
            id: radioSearch
            onLoadHomePage: {
                radioStack.currentIndex = 0
            }
        }
    }

    Component.onCompleted: {
        console.log( "radio width : " , radio.width  )
        console.log( "radio height : " , radio.height  )
    }
}
